<?php
use yii\helpers\Html;
use yii\helpers\Url;

use common\models\MktUser;
use common\models\MktSourceRoom;
use common\models\MktSourceGift;
use common\models\MktSourceDonate;
use common\models\MktSourceService;
use common\models\MktSourceMember;
use common\models\MktSourcePromotion;

?>

<a href="<?php echo Url::to(['wap/market-profile', 'id' => $model->user->id]); ?>" class="weui_media_box weui_media_appmsg">
    <div class="weui_media_hd" style="margin-top: -25px;">
        <img alt="" src="<?php echo \common\wosotech\Util::getWxUserHeadimgurl($model->user->theHeadimgurl, 46); ?>" class="weui_media_appmsg_thumb">
    </div>
    <div class="weui_media_box weui_media_text" style="width:100%;">
        <div class="weui_media_title"><span class="name"><?php echo $model->user->theName; ?></span><span class="info"><?php echo $model->user->theCompany; ?><?php echo $model->user->theDuty; ?></span></div>
        <div class="weui_info_box">

            <div class="weui_media_title"><?= MktSourceGift::getGiftTypeOption($model->gift_type) ?></div>
            <ul class="weui_media_info" style="color: #999999;">
                <li class="weui_media_info_meta"><?= $model->gift_price ?>元+</li>
                <li class="weui_media_info_meta weui_media_info_meta_extra"><?= $model->gift_count ?>份</li>
                <li class="weui_media_info_meta weui_media_info_meta_extra"></li>
            </ul>

        </div>
    </div>
</a>


<?php
/*
`$model`: mixed, the data model
`$key`: mixed, the key value associated with the data item
`$index`: integer, the zero-based index of the data item in the items array returned by [[dataProvider]].
`$widget`: ListView, this widget instance

		<div onclick="gotoDetail()" class="weui_media_box weui_media_appmsg">
			<div class="weui_media_hd" style="margin-top: -25px;">
				<img alt="" src="resources/images/avatar/tx.jpg" class="weui_media_appmsg_thumb">
			</div>
			<div class="weui_media_box weui_media_text" style="width:100%;">
				<div class="weui_media_title"><span class="name">王可</span><span class="info">艺米沙画总经理</span></div>
				<div class="weui_info_box">
					<div class="weui_media_title">实物类礼品</div>
					<ul class="weui_media_info" style="color: #999999;">
						<li class="weui_media_info_meta">50元+</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra">5百份</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra"></li>
					</ul>
				</div>
			</div>
		</div>

*/